<!DOCTYPE html>
<html lang="cn" xmlns:th="http://www.thymeleaf.org">
<head>
    <link th:href="@{/static/editor/css/style.css}" type="text/css" rel="stylesheet">
    <link th:href="@{/static/editor/css/editormd.css}" type="text/css" rel="stylesheet">
    <link th:href="@{/static/css/bootstrap.min.css}" type="text/css" rel="stylesheet">
    <link th:href="@{/static/css/markdown.css}" type="text/css" rel="stylesheet">
    <link th:href="@{/static/css/layer.css}" type="text/css" rel="stylesheet">
    <script type="text/javascript" th:src="@{/static/js/jquery-1.11.3.js}"></script>
    <script type="text/javascript" th:src="@{/static/editor/js/editormd.js}"></script>
    <script type="text/javascript" th:src="@{/static/js/bootstrap.min.js}"></script>
    <script type="text/javascript" th:src="@{/static/js/markdown.js}"></script>
    <script type="text/javascript" th:src="@{/static/js/layer.js}"></script>
    <meta charset="UTF-8">
    <title>富文本编辑器</title>
</head>
<body>
    <form id="form-article">
        <div class="compile-head">
            <a href="javascript:;" onclick="exitPage();">退出编辑</a>
            <input type="text" name="title" id="article-title" class="article-title" placeholder="请输入文章标题" th:value="${(articleMap['title']==null)?'':articleMap['title']}" />
            <input type="button" id="article-submit" class="btn btn-primary" value="发布文章"/>
            <input type="hidden" name="artId" th:value="${(articleMap['art_id']==null)?'':articleMap['art_id']}" />
            <span><img th:src="${articleMap['head_url']}"/></span>
        </div>
        <div id="layout">
            <div id="editormd">
                <textarea id="editormd-markdown-doc" name="editormd-markdown-doc" style="display:none;" th:text="${(articleMap['content']==null)?'':articleMap['content']}"></textarea>
                <!--<textarea id="editormd-html-code" name="editormd-html-code" style="display:none;"></textarea>-->
            </div>
        </div>
    </form>

</body>
</html>